package com.humanresource.service.impl.clerkrecord;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.humanresource.dao.mapper.clerkrecord.ClerkdetailinfoMapper;
import com.humanresource.domain.po.clerkrecord.ClerkdetailinfoWithBLOBs;
import com.humanresource.service.clerkrecord.ClerkDetailInfoService;

@Service
public class ClerkDetailInfoServiceImpl implements ClerkDetailInfoService {

	@Autowired
	private ClerkdetailinfoMapper clerkdetailinfoMapper;

	@Override
	public void insert(ClerkdetailinfoWithBLOBs clerkdetailinfo) {
		this.clerkdetailinfoMapper.insertSelective(clerkdetailinfo);
	}

	@Override
	public ClerkdetailinfoWithBLOBs findByClerkId(Integer clerkId) {
		return this.clerkdetailinfoMapper.selectByPrimaryKey(clerkId);
	}

	@Override
	public void update(ClerkdetailinfoWithBLOBs clerkdetailinfoWithBLOBs) {
		this.clerkdetailinfoMapper
				.updateByPrimaryKeySelective(clerkdetailinfoWithBLOBs);
	}

}
